#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPainter>
#include <QPen>
#include <QDebug>
#include <QLinearGradient>
#include <QTimer>
#include <QTime>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    QPixmap paintWidget();

protected:
    void paintEvent(QPaintEvent *event);
    void resizeEvent(QResizeEvent *event);

protected slots:
    void timerTimeOut();

private:
    QTimer *m_pTimer;
    QPoint m_Point;
    int m_iDiameter = 0;
    double m_dbAngle = 0;
    QList<QPixmap> list_pixmap;
    QList<QPoint> lstPoint;
private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
